<template>
  <div id="app">
      <router-view></router-view>
  </div>
</template>

<script>

  import beeflex from "bee-flex";
  import appIndex from './pages/index'
  export default {
    name: "app",
    computed: {
      desgin() {
        return this.$store.state.app.desgin;
      }
    },
    components:{
      appIndex
    },
    beforeCreate() {
      this.$store.dispatch("initScene");
    },
    mounted() {
      beeflex(this.desgin, options => {
        let device = {
          width: options.width,
          height: options.height
        };
        this.$store.commit("appSetDevice", device);
      });
    }
  };
</script>

<style lang="stylus">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
  body,html{
    max-width 750px
    margin 0 auto
  }

li,ul{
  list-style none
}
</style>
